import request from '@/utils/request'

// 查询学生考试信息查询列表
export function listExam(query) {
  return request({
    url: '/kyga/exam/list',
    method: 'get',
    params: query
  })
}

// 查询学生考试信息查询详细
export function getExam(examPaper) {
  return request({
    url: '/kyga/exam/' + examPaper,
    method: 'get'
  })
}

// 新增学生考试信息查询
export function addExam(data) {
  return request({
    url: '/kyga/exam',
    method: 'post',
    data: data
  })
}

// 修改学生考试信息查询
export function updateExam(data) {
  return request({
    url: '/kyga/exam',
    method: 'put',
    data: data
  })
}

// 删除学生考试信息查询
export function delExam(examPaper) {
  return request({
    url: '/kyga/exam/' + examPaper,
    method: 'delete'
  })
}

// 导出学生考试信息查询
export function exportExam(query) {
  return request({
    url: '/kyga/exam/export',
    method: 'get',
    params: query
  })
}